package com.xmh.autocode.config;


import com.xmh.autocode.inject.Inject;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.Map;

@Configuration
@ConfigurationProperties(prefix = "modelconfig")
public class MyConfig {

    private Map<String, String> configFiles;

    private Map<String, String> logicFiles;

    public void setConfigFiles(Map<String, String> configFiles) {
        this.configFiles = configFiles;
        Inject.setConfigFiles(configFiles);
    }

    public void setLogicFiles(Map<String, String> logicFiles) {
        this.logicFiles = logicFiles;
        Inject.setLogicFiles(logicFiles);
    }
}
